<?php
/**
 * 管理后台统一登录入口
 * Author: lyun
 * Date: 2018/3/27
 * Created by Panxsoft.
 */
use Illuminate\Support\Facades\Route;

/**
 * @see \App\Http\Controllers\Admin\AdminAuthController::login()
 */
Route::post('/login', 'AdminAuthController@login')
    ->name(\App\Http\Controllers\Admin\AdminAuthController::ROUTES['login']);

/**
 * @see \App\Http\Controllers\Admin\ForgotPasswordController::forgetPassword()
 */
Route::post('/forget-password', 'ForgotPasswordController@forgetPassword');

/**
 * @see \App\Http\Controllers\Admin\ForgotPasswordController::resetPassword()
 */
Route::post('/reset-password', 'ForgotPasswordController@resetPassword');


/**
 * @see \App\Http\Controllers\Admin\AdminAuthController::generateTokenForId()
 */
Route::post('/generate-token', 'AdminAuthController@generateTokenForId');

/**
 * @see \App\Http\Controllers\Admin\AdminAuthController::refreshToken()
 */
Route::get('/refresh-token', 'AdminAuthController@refreshToken')
    ->name(\App\Http\Controllers\Admin\AdminAuthController::ROUTES['refresh-token']);
